Repository navigation
feat(project): scaffold a project into the directory you already opened - #230
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
JeffreyJYZ
approved these changes
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Open an empty folder and nothing can be made of it:
create_project(parent, name, kind, standard)builds<parent>/<name>and refuses when that path exists, so the folder you are already in is the one case it cannot serve.init_project(root, kind, standard)scaffolds intorootitself — same files, same per-kind layout, sametemplates.rsconstants andresolve_standard, so there is no second copy of a starter template to drift. It reuses the existing refusal text for an unknown kind and for a standard from the wrong language.Emptiness is decided by the backend, not the caller: nothing at all, or only
.quarry/,.gitor.DS_Storeis accepted, and anything else is refused with up to three offending entries named so a panel can say why. It never overwrites an existing file, and it returns exactly whatopen_projectreturns for that directory, so the caller activates the project without a second round trip.create_projectand its tests are untouched.Eleven tests cover each kind, the directory name becoming the project name, the refusal cases, the allowed occupants, the no-overwrite rule and the standard reaching the manifest. Gate 11/11 on the merged tree, clippy
-D warningsclean, file-size clean.